package cn.dgiot.fd.model;

import java.util.Date;

/**
 * [设备下位机]
 * @author
 *
 */
public class DevicePLC extends BaseModel{
	//产品标识
	private String productKey;
	//设备编码
	private String deviceCode;
	//下位机类型
	private String plcCode;
	//下挂序号
	private String dpno;
	//创建者
	private String createBy;
	//创建时间
	private Date createTime;
	//更新者
	private String updateBy;
	//更新时间
	private Date updateTime;
	
	public DevicePLC() {
		
	}
	
	public DevicePLC(String deviceName, String productKey, String dpno) {
		this.setDeviceCode(deviceName);
		this.setProductKey(productKey);
		this.setDpno(dpno);
	}
	
	public DevicePLC(PLCModelFlow plcModelFlow) {
		this.setProductKey(plcModelFlow.getProductKey());
		this.setDeviceName(plcModelFlow.getDeviceName());
		this.setPlcCode(plcModelFlow.getPlcCode());
		this.setDpno(plcModelFlow.getDpno());
	}
	
	public String getProductKey() {
		return productKey;
	}
	public void setProductKey(String productKey) {
		this.productKey = productKey;
	}
	public String getDeviceCode() {
		return deviceCode;
	}
	public void setDeviceCode(String deviceCode) {
		this.deviceCode = deviceCode;
	}
	public String getPlcCode() {
		return plcCode;
	}
	public void setPlcCode(String plcCode) {
		this.plcCode = plcCode;
	}
	public String getDpno() {
		return dpno;
	}
	public void setDpno(String dpno) {
		this.dpno = dpno;
	}
	public String getCreateBy() {
		return createBy;
	}
	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getUpdateBy() {
		return updateBy;
	}
	public void setUpdateBy(String updateBy) {
		this.updateBy = updateBy;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}
